package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.CustomerManagerDao;
import com.platform.entity.CustomerManagerEntity;
import com.platform.service.CustomerManagerService;

/**
 * 单位客户管理Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2018-03-19 11:52:42
 */
@Service("customerManagerService")
public class CustomerManagerServiceImpl implements CustomerManagerService {
    @Autowired
    private CustomerManagerDao customerManagerDao;

    @Override
    public CustomerManagerEntity queryObject(Integer customerId) {
        return customerManagerDao.queryObject(customerId);
    }

    @Override
    public List<CustomerManagerEntity> queryList(Map<String, Object> map) {
        return customerManagerDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return customerManagerDao.queryTotal(map);
    }

    @Override
    public int save(CustomerManagerEntity tCustomerManager) {
        return customerManagerDao.save(tCustomerManager);
    }

    @Override
    public int update(CustomerManagerEntity tCustomerManager) {
        return customerManagerDao.update(tCustomerManager);
    }

    @Override
    public int delete(Integer customerId) {
        return customerManagerDao.delete(customerId);
    }

    @Override
    public int deleteBatch(Integer[]customerIds) {
        return customerManagerDao.deleteBatch(customerIds);
    }
}
